package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserInfoRepository extends MongoRepository <UserInfo,String> {


    /**
     * 使用JPA ,查询该手机号码是否被注册了
     * @param phone
     * @return 用户
     */
    UserInfo findByPhone(String phone);



}
